/**
 * 
 */
package com.pactera.android.version;

import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Message;
import android.widget.Toast;

import com.pactera.android.R;
import com.pactera.android.model.VersionInfo;

/**
 * @author David Zheng
 *
 */
public class CheckVersionTask {
	
	/**
	 * init a new thread to do the version check job
	 */
	public static void checkVersion(Context context) {		
		UpdateManager updateManager = new UpdateManager(context);				
		Thread thread = new Thread(updateManager);
		if (Thread.State.NEW == thread.getState()) {
			thread.start();			
		} 				
	}
	
}
